package com.mjl.shops.fragment;

import android.view.View;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.jaeger.library.StatusBarUtil;
import com.mjl.shops.R;
import com.mjl.shops.adapter.ShopCarGoodAdapter;
import com.mjl.shops.base.BaseDate;
import com.mjl.shops.base.BaseFragment;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ShopCarFragment extends BaseFragment {

    private ShopCarGoodAdapter adapter;

    @BindView(R.id.shop_goods_recyc)
    RecyclerView mRecycler;


    @Override
    protected View initView() {
        StatusBarUtil.setTranslucentForImageView(getActivity(), 10, null);
        StatusBarUtil.setDarkMode(getActivity());
        View mView = View.inflate(getActivity(), R.layout.fragment_shop_car_layout,null);
        ButterKnife.bind(this,mView);
        adapter = new ShopCarGoodAdapter(R.layout.item_shop_car_goods_layout, BaseDate.getmGoods());
        mRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));
        mRecycler.setAdapter(adapter);
        return mView;
    }

    @Override
    protected void setData(View view) {

    }

    @Override
    protected void initData() {

    }
}
